package com.xq.tmall.dao;

import com.xq.tmall.entity.Business;
import com.xq.tmall.util.PageUtil;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface BusinessMapper {
    Integer insertOne(@Param("business") Business business);
    Integer updateOne(@Param("business") Business business);

    List<Business> select(@Param("business_name") String business_name, @Param("pageUtil") PageUtil pageUtil);
    Business selectOne(@Param("business_name") String business_name, @Param("business_id") Integer business_id);
    Business selectByLogin(@Param("business_name") String business_name, @Param("business_password") String business_password);
    Integer selectTotal(@Param("business_name") String business_name);
}